<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');
    $router->resource('category', 'CategoryController');
    $router->resource('company', 'InsureCompanyController');
    $router->resource('insure', 'InsureController');
    $router->resource('user', 'UserController');
    $router->resource('enter', 'EnterController');
    $router->resource('setting', 'SettingController');
    $router->resource('banner', 'BannerController');
    $router->resource('like', 'LikeController');
    $router->resource('feedback', 'FeedbackController');
    $router->resource('withdraw', 'WithdrawController');
    $router->resource('card', 'CardController');
    $router->resource('reward', 'InviteRewardController');
    $router->resource('product', 'ProductController');
    $router->resource('promot', 'PromotBannerController');

});
